import 'package:fish_redux/fish_redux.dart';
import 'package:webview_flutter/webview_flutter.dart';

class AlipayViewState implements Cloneable<AlipayViewState> {
  String url;
  String transNo;
  String orderNo;
  WebViewController webViewController;
  bool isLoaded = false;

  @override
  AlipayViewState clone() {
    return AlipayViewState()
      ..url = url
      ..isLoaded = isLoaded
      ..transNo = transNo
      ..orderNo = orderNo
      ..webViewController = webViewController;
  }
}

AlipayViewState initState(Map<String, dynamic> args) {
  return AlipayViewState()
    ..url = args['url']
    ..orderNo = args['orderNo']
    ..transNo = args['transNo'];
}
